import request from '@/utils/request';
// 消费成就列表
export function useList (params) {
  return request({
    url: 'v1/achieve/useList',
    method: 'get',
    params
  });
}
// 推广成就列表
export function agentList (params) {
  return request({
    url: 'v1/achieve/agentList',
    method: 'get',
    params
  });
}
// 充值成就列表
export function chargeList (params) {
  return request({
    url: 'v1/achieve/chargeList',
    method: 'get',
    params
  });
}
// 榜单成就列表
export function rankingList (params) {
  return request({
    url: 'v1/achieve/rankingList',
    method: 'get',
    params
  });
}
// 榜单成就编辑
export function rankingEdit (data) {
  return request({
    url: 'v1/achieve/rankingEdit',
    method: 'post',
    data: data
  });
}
// 充值成就编辑
export function chargeEdit (data) {
  return request({
    url: 'v1/achieve/chargeEdit',
    method: 'post',
    data: data
  });
}
// 推广成就编辑
export function agentEdit (data) {
  return request({
    url: 'v1/achieve/agentEdit',
    method: 'post',
    data: data
  });
}
// 消费成就编辑
export function editUse (data) {
  return request({
    url: 'v1/achieve/editUse',
    method: 'post',
    data: data
  });
}